Telegram Group & Telegram Channel
5. Program to Accept value of length & width and Calculate Area of Rectangle.

import java.util.Scanner;

class AreaOfRectangle
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);

System.out.println("Enter the length of Rectangle:");
double length = scanner.nextDouble();

System.out.println("Enter the width of Rectangle:");
double width = scanner.nextDouble();

//Area = length*width;
double area = length * width;

System.out.println("Area of Rectangle is:" + area);
}
}

@java_codings



tg-me.com/java_codings/9
Create:
Last Update:

5. Program to Accept value of length & width and Calculate Area of Rectangle.

import java.util.Scanner;

class AreaOfRectangle
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);

System.out.println("Enter the length of Rectangle:");
double length = scanner.nextDouble();

System.out.println("Enter the width of Rectangle:");
double width = scanner.nextDouble();

//Area = length*width;
double area = length * width;

System.out.println("Area of Rectangle is:" + area);
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/9

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothersβ€”or maybe the next Silverado?β€”echoed through the canyons of Wall Street as investors prepared for the worst.

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. β€œWhile doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

Advance Java ‍ from sg


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA